package sctu.edu.java.year2016.team01.xuhanmei.day20160521.chapter4_2;

/**
 * Created by Administrator on 2016/5/24.
 * 利用for循环输出一个菱形
 */
public class Rhombus {
    public static void main(String[] args) {
        String[][] star=new String[][]{{" "," ","*"," "," "},{" ","*"," ","*"," "},
                {"*"," "," "," ","*"},{" ","*"," ","*"," "},{" "," ","*"," "," "}};
        for(String[] is:star){
            for(String a:is){
                System.out.print(a);//ln用来换行
            }
            System.out.println();
        }
    }
}
